<?php
class Gala_Wishcartsettings_Model_Config_Menu
{
	public function toOptionArray()
    {
		$arr	=	array(
			array('label' => "Default Navigation Menu", 'value' => 0)
		);
		if(	Mage::getConfig()->getModuleConfig('EM_Megamenupro')->is('active', 'true') != false)	// Check include extension
		{
			if(Mage::getStoreConfig('advanced/modules_disable_output/EM_Megamenupro')	!= 1){	// check enable/disable extension - in Backend : System > Config > Advanced
				$menu = Mage::getModel('megamenupro/megamenupro')->getCollection()->addFieldToFilter("status",1)->addFieldToFilter("type",0)->getData();
				foreach($menu as $key=>$value)
					$arr[] = array('label' => $value['name'],'value' => $value['megamenupro_id']);
			}
		}
		return $arr;
    }
}
